# -*- coding: UTF-8 -*-

from bottle import route,run,template,view

@route('/login')
def login():
    return template('login')


@route('/info')
def info():
    name="john"
    age = 23
    blog="xxxx"
    book=['pytho','important',2132]
    price = {'pc':232,'block':232,'lala':23}
    data = {}
    return template('info',tname=name,tage=age,tblog=blog,tbook=book,tpice=price)

@route('/info2')
@view('info2')
def info2():
    name="john"
    age = 23
    blog="xxxx"
    book=['pytho','important',2132]
    price = {'pc':232,'block':232,'lala':23}
    data = {'tname':name,'tage':age,'tblog':blog,'tbook':book,'tprice':price}
    return data

run(host="localhost",port=9000,debug=True,reloader=True)